-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: cron job to parse nippon mutual funds #24
base: master
Are you sure you want to change the base?
Conversation
can parse all the links that are inside the href for Just need to download the files, parse and upload to cloudinary. I can pick complete this tomorrow (haven't setup cloudinary and mongo yet). @cu8code do you want to collab? |
Sure looks good! But I will probably need access to push to your repo. I will try to download and parse the files, let's see! |
|
If we use external platform, we can not use Golang directly in the platform! But if we expose our service as URL, and then this external platform can call our URL to run the script. We can use make.com or n8n to call our URL! @shivamsouravjha any alternative solution |
i think we can make this in house as well in that case. Because we are using ticker anyways (to keep server alive as it would die in 50 seconds of inactivity) |
@cu8code let me know how can i help. if you're on discord then add me: |
41db6de
to
23a2222
Compare
@shivamsouravjha can you give a some more info on what to do now with mongo |
Since you store the excel sheet and it is of a particular month we can store the file and its cloudinary link in mongo name can be - name of MF+ month (complete name, so that its not duplicate and with a simple regex we can find) fields can be unique name - mf complete name + month month (here we can use primary + secondary key technique on complete bame and month as to not have additional field of unique name ) |
facing some issues with cloudinary. will fix those and implement mongo soon. Can you check once if the cloudinary implementation is okay or not? |
we are parsing the date from the filename using regex but it is not working for some entries where the filename is weird
These are the files where the regex doesn't work so the month field remains empty in this case. also can you clear the fund house thing? will it be nippon for every entry? let me know what i've to change edit: also do you want the _id to be the custom uuid or it is fine as it is rn |
|
func main() {
performUploadTask()
}
|
sure @Sama-004 testing the same! sorry for the delay past few weeks were a bit too busy.! |
the build is breaking perhaps you should update the package name , and also link this function to the mail files |
… for "Monthly portfolio for the month end"
…I could not get it working
- Doesn't work for filenames with weird date format like IN_MF_RLMF_MONTHLY_PORTFOLIO_REPORT-%25282%2529.xls RVSD-IN_MF_RLMF_MONTHLY_PORTFOLIO_REPORT-revised.xls RelianceMonthlyPortfolios31122013.xls RelianceMonthlyPortfolios31102013.xls RelianceMonthlyPortfolios31032014.xls Reliance-Monthly-Portfolios-30062015.xls Reliance-Monthly-Portfolios-31052015.xls Reliance-Monthly-Portfolios-30042015.xls Reliance%2520Monthly%2520Portfolios-31.03.2015-1.xlsx Reliance-Monthly-Portfolios-28022015.xls Reliance-Monthly-Portfolios-31012015.xls Reliance-Monthly-Portfolios-31122014.xls Reliance-Monthly-Portfolios-30092015.xls Reliance-Monthly-Portfolios-31082015.xls Reliance-Monthly-Portfolios-31072015.xls Reliance%2520Monthly%2520Portfolios-30.11.2014.xls Reliance%2520Monthly%2520Portfolios-31.10.2014.xls RTFOLIO-MAR-23.xls MONTHLY-PORTFOLIO-FEB-23.xls NIMF-Portfolio-with-Rikometer-March-21.xlsx Portfolio-June-With-riskometer.xls need to add dates for these files manually
Signed-off-by: shivamsouravjha <[email protected]>
f7bc97a
to
704a6fb
Compare
Signed-off-by: shivamsouravjha <[email protected]>
also since all of these files consists the details of funds would be fun to dump the data. I will pick it if you folks are busy, basically parse the sheet break it page by page store the data in separate mongo collection |
I can do this after 2 weeks, a bit busy rn. @cu8code what about you? |
Signed-off-by: shivamsouravjha <[email protected]>
Signed-off-by: shivamsouravjha <[email protected]>
Signed-off-by: shivamsouravjha <[email protected]>
Signed-off-by: shivamsouravjha <[email protected]>
resolves #23